home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1996 #15 / Monster Media Number 15 (Monster Media)(July 1996).ISO / bbs_util / bsrc_260.zip / INCLUDE.ZIP / SNSERVER.H < prev    next >
C/C++ Source or Header  |  1996-02-20  |  4KB  |  89 lines

  1. /*--------------------------------------------------------------------------*/
  2. /*                                                                          */
  3. /*                                                                          */
  4. /*      ------------         Bit-Bucket Software, Co.                       */
  5. /*      \ 10001101 /         Writers and Distributors of                    */
  6. /*       \ 011110 /          Freely Available<tm> Software.                 */
  7. /*        \ 1011 /                                                          */
  8. /*         ------                                                           */
  9. /*                                                                          */
  10. /*              (C) Copyright 1987-96, Bit Bucket Software Co.              */
  11. /*                                                                          */
  12. /*               This header file was written by Bill Andrus                */
  13. /*                                                                          */
  14. /*          OS/2 Snoop server library definitions for BinkleyTerm           */
  15. /*                                                                          */
  16. /*                                                                          */
  17. /*    For complete  details  of the licensing restrictions, please refer    */
  18. /*    to the License  agreement,  which  is published in its entirety in    */
  19. /*    the MAKEFILE and BT.C, and also contained in the file LICENSE.260.    */
  20. /*                                                                          */
  21. /*    USE  OF THIS FILE IS SUBJECT TO THE  RESTRICTIONS CONTAINED IN THE    */
  22. /*    BINKLEYTERM  LICENSING  AGREEMENT.  IF YOU DO NOT FIND THE TEXT OF    */
  23. /*    THIS  AGREEMENT IN ANY OF THE  AFOREMENTIONED FILES,  OR IF YOU DO    */
  24. /*    NOT HAVE THESE FILES,  YOU  SHOULD  IMMEDIATELY CONTACT BIT BUCKET    */
  25. /*    SOFTWARE CO.  AT ONE OF THE  ADDRESSES  LISTED BELOW.  IN NO EVENT    */
  26. /*    SHOULD YOU  PROCEED TO USE THIS FILE  WITHOUT HAVING  ACCEPTED THE    */
  27. /*    TERMS  OF  THE  BINKLEYTERM  LICENSING  AGREEMENT,  OR  SUCH OTHER    */
  28. /*    AGREEMENT AS YOU ARE ABLE TO REACH WITH BIT BUCKET SOFTWARE, CO.      */
  29. /*                                                                          */
  30. /*                                                                          */
  31. /* You can contact Bit Bucket Software Co. at any one of the following      */
  32. /* addresses:                                                               */
  33. /*                                                                          */
  34. /* Bit Bucket Software Co.        FidoNet  1:104/501, 1:343/491             */
  35. /* P.O. Box 460398                AlterNet 7:42/1491                        */
  36. /* Aurora, CO 80046               BBS-Net  86:2030/1                        */
  37. /*                                Internet f491.n343.z1.fidonet.org         */
  38. /*                                                                          */
  39. /* Please feel free to contact us at any time to share your comments about  */
  40. /* our software and/or licensing policies.                                  */
  41. /*                                                                          */
  42. /*--------------------------------------------------------------------------*/
  43.  
  44. #ifndef APIENTRY
  45. #include <os2def.h>
  46. #endif
  47.  
  48. #ifdef    __32BIT__    /* MB 93-11-27 */
  49.  
  50. #ifndef CALLBACK
  51. #define CALLBACK _Far16 _Pascal 
  52. #endif
  53.  
  54. typedef SEL  HSNOOP;
  55. typedef PSEL PHSNOOP;
  56. typedef short    ( * CALLBACK PFNSN) (short flag, char * _Seg16 _Far16 str);
  57.  
  58.  
  59. USHORT CALLBACK SnoopOpen (PSZ _Seg16 pszPipeName,
  60.     PHSNOOP _Seg16 phSnoop,
  61.     PSZ _Seg16 pszAppName,
  62.     PFNSN NotifyFunc);
  63.  
  64. USHORT CALLBACK SnoopWrite (HSNOOP hsn, PSZ _Seg16 pszMessage);
  65.  
  66. USHORT CALLBACK SnoopClose (HSNOOP hsn);
  67.  
  68. #else  /* #ifdef __32BIT__ */
  69.  
  70. #ifndef CALLBACK
  71. #define CALLBACK pascal far _loadds _export
  72. #endif
  73.  
  74. typedef SEL HSNOOP;
  75. typedef PSEL PHSNOOP;
  76. typedef int (pascal far * PFNSN) (int flag, char far * str);
  77.  
  78. USHORT CALLBACK SnoopOpen (PSZ pszPipeName,
  79.     PHSNOOP phSnoop,
  80.     PSZ pszAppName,
  81.     PFNSN NotifyFunc);
  82.  
  83. USHORT CALLBACK SnoopWrite (HSNOOP hsn, PSZ pszMessage);
  84.  
  85. USHORT CALLBACK SnoopClose (HSNOOP hsn);
  86.  
  87. #endif /* #ifdef __IBMC__ */ 
  88.  
  89.